package com.jiazhong.shixi.util;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class JsonResult<T> {

    private boolean success; // true|false
    private int code; // 状态码
    private T data; // 成功返回的数据
    private String error; // 错误的消息
}